export const handleCoverToImageList = (cover: string) => {
  const urlList = cover.split(",");
  return urlList.map((url) => {
    // 使用正则表达式提取文件名
    const match = url.match(/([^/]+\.png)$/);
    const name = match ? match[1] : ""; // 如果没有匹配，则返回空字符串

    return {
      url,
      name,
    };
  });
};

export const getOneFromCover = (cover: string) => {
  const urlList = cover.split(",");
  return urlList[0];
};
